//------------------------------------------------------------------------
inline
ReferencedObject::ReferencedObject()
{

}

//------------------------------------------------------------------------
inline
ReferencedObject::~ReferencedObject()
{

}

//------------------------------------------------------------------------
inline void
ReferencedObject::addReference()
{
	m_counter.increment();
}

//------------------------------------------------------------------------
inline void
ReferencedObject::releaseReference()
{
	if(0==m_counter.decrement())
	{
		delete this;
	}
}

//------------------------------------------------------------------------
inline int
ReferencedObject::getReferencedCount() const
{
	return m_counter.getValue();
}